import model.Article;
import model.ArticleImpl;
import model.Author;
import model.AuthorImpl;
import model.Comment;
import model.CommentImpl;
import model.Discussion;
import model.DiscussionImpl;


public class TestInsect {

	Article a = null;
	
	public TestInsect() {
		a = new ArticleImpl();
		a.setName("insect");
		
		Author a1 = new AuthorImpl();
		a1.setUsername("80.222.238.141");
		Author a2 = new AuthorImpl();
		a2.setUsername("Grundle2600");
		Author a3 = new AuthorImpl();
		a3.setUsername("71.218.7.59");
		Author a4 = new AuthorImpl();
		a4.setUsername("Dyanega");
		Author a5 = new AuthorImpl();
		a5.setUsername("Keepstherainoff");	
		Author a6 = new AuthorImpl();
		a6.setUsername("71.60.110.49");	
		Author a7 = new AuthorImpl();
		a7.setUsername("--FUNKAMATIC");	
		
		Discussion d1 = new DiscussionImpl();
		d1.setTitle("Mention the blood of the insects");
		Discussion d2 = new DiscussionImpl();
		d2.setTitle(" very unusual insect whose article could use expansion");
		Discussion d3 = new DiscussionImpl();
		d3.setTitle("Differences in the number of species possible");
		Discussion d4 = new DiscussionImpl();
		d4.setTitle("bees/wasps");
		
		Comment c1 = new CommentImpl();
		c1.setArticle(a);
		c1.setAuthor(a1);
		c1.setText("Unlike other species, have glucose in their blood replaced by disaccaridhe called \"trehalosis\". (\"Biokemiaa\", Leena Turpeenoja 1999). It should be mentioned since it is also an explanation for seemingly endless stamina of insects and it is also wondrous detail in its own good. :)");
		
		Comment c2 = new CommentImpl();
		c2.setArticle(a);
		c2.setAuthor(a2);
		c2.setText("I recently heard about Afrocimex constrictus. There was no article about it here so I created it. But it could use expansion from an expert.");
		
		Comment cc31 = new CommentImpl();
		cc31.setArticle(a);
		cc31.setAuthor(a4);
		cc31.setText("The problem is different sources. The 50 million number is a well-known estimate from Terry Erwin of the Smithsonian Institution, based on canopy fogging studies in Peru, back in the 1980's. Some people have since come to feel that estimate is too high, and have subsequently said that 30 million is a more reasonable upper limit. So, if you look at sources that accept Erwin's estimate, it's 50, and if you look at sources that DON'T accept Erwin's estimate, they say 30. Of course, if the molecular systematists continue on their present path, and they redefine species so that they are based solely on DNA, then the estimate will jump to something on the order of 200 million species of insects.");
	
		Comment c3 = new CommentImpl();
		c3.setArticle(a);
		c3.setAuthor(a3);
		c3.setText("In the first paragraph, it says: \"...with estimates of undescribed species as high as 30 million... In the second paragraph, it says: \"Estimates of the total number of current species, including those not yet known to science, range from two million to fifty million...");
		c3.addChildComment(cc31);
		
		Comment c4 = new CommentImpl();
		c4.setArticle(a);
		c4.setAuthor(a5);
		c4.setText("It mentions that insects represent ~90% of all the different animals on Earth. Does that mean individual animals, or species? The arthropod article claims that they represent only 80% of animal species. I know that there is probably much variation in the estimation of these values. but I was wondering if it was possible to have some clarity on what the numbers are measuring, even if it is too much to comment on how these estimates compare to others.");
		
		Comment cc52 = new CommentImpl();
		cc52.setArticle(a);
		cc52.setAuthor(a7);
		cc52.setText("Bees are a type of wasp");
		
		Comment cc51 = new CommentImpl();
		cc51.setArticle(a);
		cc51.setAuthor(a7);
		cc51.setText("Actually, there are very few bees that have black and yellow stripes, whereas there are thousands of wasps with that color pattern. It is far more common in wasps than in any other group of insects.");
		cc51.addChildComment(cc52);
		
		Comment c5 = new CommentImpl();
		c5.setArticle(a);
		c5.setAuthor(a6);
		c5.setText("can there be a wasp with a bees stripes");
		c5.addChildComment(cc51);
		
		d1.addComment(c1);
		d2.addComment(c2);
		d3.addComment(c3);
		d3.addComment(c4);
		d4.addComment(c5);
		
		a.addDiscussion(d1);
		a.addDiscussion(d2);
		a.addDiscussion(d3);
		a.addDiscussion(d4);
	}
	
	public Article getArticle() {
		return a;
	}
}
